package com.chujian.framework.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author ：chujian
 * @date ：2020-12-21
 * IdName组合
 */
@Getter
@Setter
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class IdNameCompose extends IdName {

    private Serializable prentId;

    public IdNameCompose() {
    }

    public IdNameCompose(Serializable id, String name) {
        super(id, name);
    }

    public IdNameCompose(Serializable id, Serializable prentId, String name) {
        super(id, name);
        this.prentId = prentId;
    }

    private List<IdNameCompose> children;

}
